package cn.wolfcode.trip.base.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;

@Setter
@Getter
public class Letter {
    public static final Integer STATE_UNREAD = 0;
    public static final Integer STATE_READED = 1;
    //发送人id
    private User send;
    //接收人id
    private User accept;
    //私信内容
    private String content;
    //创建时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;
    //状态 0 未读 1 已读
    private Integer state;
}
